package cn.hist.hfp.repository;

import cn.hist.hfp.entity.CommodityOrder;
import cn.hist.hfp.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CommodityOrderRepository extends JpaRepository<CommodityOrder, Integer> {

    List<CommodityOrder> findAllByUser(User user);
}
